<?php

namespace backend\modules\wxsource\controllers;

use backend\modules\base\controllers\BaseController;
use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use backend\modules\wxsource\models\WxSourceData;
use yii\filters\VerbFilter;

/**
 * WxadcatController implements the CRUD actions for WxAdCat model.
 */
class WxsourceController extends BaseController
{
    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['POST'],
                ],
            ],
        ];
    }

    /**
     * Lists all WxAdCat models.
     * @return mixed
     */
    public function actionIndex()
    {
        $wxSourceData = new WxSourceData();
        $arrSourceARR = $wxSourceData->getSource();
        return $this->render('index',['arrSourceARR'=>$arrSourceARR]);
    }
}
